package meijuli.com.join51.business.model;

import java.util.List;

/**
 * 平台扣点率数据
 *
 * @author Wizong 2017-05-19 13:09
 */
public class PlatformDiscount {
    private List<Discount> businessDiscountRule;
    private String tips_after_auth; // 设置页面温馨提示
    private String tips_setting; // 首次进入是温馨提示
    public static String discontId = "discount_id";

    public class Discount {
        private long dmId;
        private String discountNum; // 折扣比例
        private String sellerRecommendRunsub; // 联盟商家推荐人分润比例
        private String twoRecommendRunsub; // 二级推荐人分润比例
        private String provinceRunsub; // 省代分润比例
        private String townRunsub; // 区县分润比例
        private String oneRecommendRunsub; // 一级推荐人分润比例
        private String cityRunsub; // 市代分润比例
        private String discountToIntegral; // 补贴积分券倍数 补贴积分券 = 倍数*discountNum*订单金额
        private String discountDesc; // 折扣说明
        private String discountName; // 折扣说明

        public long getDmId() {
            return dmId;
        }

        public void setDmId(long dmId) {
            this.dmId = dmId;
        }

        public String getDiscountNum() {
            return discountNum;
        }

        public void setDiscountNum(String discountNum) {
            this.discountNum = discountNum;
        }

        public String getSellerRecommendRunsub() {
            return sellerRecommendRunsub;
        }

        public void setSellerRecommendRunsub(String sellerRecommendRunsub) {
            this.sellerRecommendRunsub = sellerRecommendRunsub;
        }

        public String getTwoRecommendRunsub() {
            return twoRecommendRunsub;
        }

        public void setTwoRecommendRunsub(String twoRecommendRunsub) {
            this.twoRecommendRunsub = twoRecommendRunsub;
        }

        public String getProvinceRunsub() {
            return provinceRunsub;
        }

        public void setProvinceRunsub(String provinceRunsub) {
            this.provinceRunsub = provinceRunsub;
        }

        public String getTownRunsub() {
            return townRunsub;
        }

        public void setTownRunsub(String townRunsub) {
            this.townRunsub = townRunsub;
        }

        public String getOneRecommendRunsub() {
            return oneRecommendRunsub;
        }

        public void setOneRecommendRunsub(String oneRecommendRunsub) {
            this.oneRecommendRunsub = oneRecommendRunsub;
        }

        public String getCityRunsub() {
            return cityRunsub;
        }

        public void setCityRunsub(String cityRunsub) {
            this.cityRunsub = cityRunsub;
        }

        public String getDiscountToIntegral() {
            return discountToIntegral;
        }

        public void setDiscountToIntegral(String discountToIntegral) {
            this.discountToIntegral = discountToIntegral;
        }

        public String getDiscountDesc() {
            return discountDesc;
        }

        public String getDiscountName() {
            return discountName;
        }

        public void setDiscountName(String discountName) {
            this.discountName = discountName;
        }

        public void setDiscountDesc(String discountDesc) {
            this.discountDesc = discountDesc;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj instanceof Discount) {
                return ((Discount) obj).dmId == this.dmId;
            }
            return super.equals(obj);
        }
    }

    public List<Discount> getBusinessDiscountRule() {
        return businessDiscountRule;
    }

    public void setBusinessDiscountRule(List<Discount> businessDiscountRule) {
        this.businessDiscountRule = businessDiscountRule;
    }

    public String getTips_after_auth() {
        return tips_after_auth;
    }

    public void setTips_after_auth(String tips_after_auth) {
        this.tips_after_auth = tips_after_auth;
    }

    public String getTips_setting() {
        return tips_setting;
    }

    public void setTips_setting(String tips_setting) {
        this.tips_setting = tips_setting;
    }
}